/**
 * 
 */
package edu.cmu.mism.dgjava.algorithm;

/**
 * Abstract Option Algorithm base class
 * 
 * @author Christian
 * 
 */
public abstract class AbstractOptionAlgorithm implements IOptionAlgorithm {
	protected Object _underlyingModel;
	protected Object _pricingModel;

	public AbstractOptionAlgorithm(Object underlyingModel, Object pricingModel) {
		this._underlyingModel = underlyingModel;
		this._pricingModel = pricingModel;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * edu.cmu.mism.dgjava.algorithm.IOptionAlgorithm#getUnderlyingTypeModel()
	 */
	public Object getUnderlyingTypeModel() {
		return _underlyingModel;
	}

	/**
	 * Sets the underlying type model
	 * 
	 * @param underlyingTypeModel
	 */
	public void setUnderlyingTypeModel(Object underlyingTypeModel) {
		_underlyingModel = underlyingTypeModel;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see edu.cmu.mism.dgjava.algorithm.IOptionAlgorithm#getPricingModel()
	 */
	public Object getPricingModel() {
		return _pricingModel;
	}

	/**
	 * Sets the pricing model
	 * 
	 * @param pricingModel
	 */
	public void setPricingModel(Object pricingModel) {
		_pricingModel = pricingModel;
	}

}
